<div id="cms">
<table class="table">
	<tr>
		<th width="52">Position</th>
		<th width="">Name</th>
		<th width="">Eventname</th>
		<th width="">Ersteller</th>
		<th width="160">Erstelldatum</th>
		<th width="120">Anzahl Fotos</th>
		<th width="70">Bearbeiten</th>
	</tr>
	
{foreach from=$PhotoLibrary_Albums item=a name=fe}
	<tr{if $smarty.get.markid==$a->pkPhotoLibrary || $smarty.foreach.fe.first || $smarty.foreach.fe.last} class="{if $smarty.get.markid==$a->pkPhotoLibrary}marked{/if}{if $smarty.foreach.fe.first} first{/if}{if $smarty.foreach.fe.last} last{/if}"{/if}>
		<td>
			{html_linkbutton icon="arrow_down.png" text="Nach Unten schieben" link=$Sys_CurrentPageURL addlink="&method=moveLibrary&direction=down&pkPhotoLibrary=" addlink1=$a->pkPhotoLibrary type="icon" size="20" enabled=$a->canMoveDown}
			{html_linkbutton icon="arrow_up.png" text="Nach Oben schieben" link=$Sys_CurrentPageURL addlink="&method=moveLibrary&direction=up&pkPhotoLibrary=" addlink1=$a->pkPhotoLibrary type="icon" size="20" enabled=$a->canMoveUp}
		</td>
		<td><a href="{$Sys_CurrentPageURL}&amp;method=editPhotos&pkPhotoLibrary={$a->pkPhotoLibrary}">{$a->title|truncate:100:"...":true}</a></td>
		<td>{$a->fkEventName}</td>
		<td>{$a->createUserName}</td>
		<td>{$a->createDate|date_format:"%d.%m.%Y um %H:%M:%S"}</td>
		<td>{$a->photoCount}</td>
		<td>
			{html_linkbutton icon="write.png" text="Bearbeiten" link="$Sys_CurrentPageURL&amp;method=editLibrary&pkPhotoLibrary=" addlink=$a->pkPhotoLibrary type="icon" size="20" enabled=$a->canUpdate()}
			{html_linkbutton icon="delete.png" text="L&ouml;schen" link="$Sys_CurrentPageURL&amp;method=deleteLibrary&pkPhotoLibrary=" addlink=$a->pkPhotoLibrary type="icon" size="20" enabled=$a->canDelete()}
			{html_linkbutton icon="security 2.png" text="Berechtigungen" type="icon" size="20" enabled="false" ednabled=$a->canAdmin()}
		</td>
	</tr>		
{/foreach}
</table>
</div>